package com.xms.sdk.service;

import com.xms.core.data.Entity;
import com.xms.core.exception.XmsException;

import java.sql.SQLException;
import java.util.List;
import java.util.UUID;

/**
 * <p>
 * IDataCreater
 * </p>
 *
 * @author migo
 * @since 2021/9/6
 */
public interface IDataCreater {
    UUID create(Entity entity, boolean ignorePermissions) throws XmsException, SQLException;

    boolean createMany(List<Entity> entities, boolean ignorePermissions) throws XmsException;

    UUID create(Entity entity) throws XmsException, SQLException;

    boolean createMany(List<Entity> entities) throws XmsException;
}
